using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Vod_Album - 视频专辑名称 - 对象继承类
    /// </summary>
    [MetadataType(typeof(VodAlbumValidaTion))]
    public class VodAlbum : IVodAlbum<VodAlbum>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class VodAlbumValidaTion
       {

     

        /// <summary>
        /// 目录ID
        /// </summary>
        [Display(Name ="目录ID")]
        [Required]
        [StringLength(36)]
        public String VodId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="标题")]
        [StringLength(100)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 封面图片
        /// </summary>
        [Display(Name ="封面图片")]
        [StringLength(36)]
        public String ImgId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name ="创建时间")]
        [Required]

        public DateTime CreationTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 说明
        /// </summary>
        [Display(Name ="说明")]
        [StringLength(500)]
        public String Explain
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 已有视频数量
        /// </summary>
        [Display(Name ="已有视频数量")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int VodCount
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name ="排序")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Sno
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
